package com.simple.javatraining.testing.io;

import com.simple.javatraining.testing.testinside.answers.Answer;

import java.io.PrintStream;
import java.util.Scanner;

public class InputOutput {

public static void outputMessageToConsole(String message) {
    System.out.println(message);
}

public static void outputResult(double resultInPercents) {
    PrintStream printStream = new PrintStream(System.out);
    printStream.printf("Вы выполнили тест на %.1f%%",resultInPercents);
}

public static int convertStringToInt(String string) {
    return Integer.parseInt(string);
}

public static String inputStringAnswer (Scanner in) {
    return in.nextLine();
}
}
